package com.youzan.open.sdk.gen.v3_0_0.model;

import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Maps;
import com.google.common.collect.Multimap;
import com.youzan.open.sdk.model.APIParams;
import com.youzan.open.sdk.model.ByteWrapper;
import com.youzan.open.sdk.model.FileParams;
import java.util.List;
import java.util.Map;
import java.util.Date;

public class YouzanEbizStatsReferralLinksCreateParams implements APIParams, FileParams  {

    /**
     * 创建渠道，普通商家请默认传“dc”
     */
    private String origin;
    /**
     * 监控来源名称
     */
    private String sourceName;
    /**
     * 商品页，微页面，或者主页的 url
     */
    private String url;

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getOrigin() {
        return this.origin;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    public String getSourceName() {
        return this.sourceName;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return this.url;
    }


    public Map<String, Object> toParams() {
        Map<String, Object> params = Maps.newHashMap();
        if (origin != null) {
            params.put("origin", origin);
        }
        if (sourceName != null) {
            params.put("source_name", sourceName);
        }
        if (url != null) {
            params.put("url", url);
        }
        return params;
    }

    public Multimap<String, ByteWrapper> toFileParams() {
        Multimap<String, ByteWrapper> params = ArrayListMultimap.create();

            return params;
    }


}